-- msg_take_server_ticket_result
-- created by panyl
-- 获取门票结果

--void msg_take_server_ticket_result(string server_name, int16 result, int16 privilege, int32 seed, string msg, string orig_account);
return function(lpc)
    trace("msg_take_server_ticket_result", "获取门票结果: %d", lpc.result);

    -- 获取门票成功
    if lpc.result == 1 then
        _G.aaaAccountInfo.seed = lpc.seed
        _G.aaaAccountInfo.privilege = lpc.privilege
        _G.server_name = lpc.server_name
    end

    -- 断开与aaa的链接
    Socket.disconnect()
end
